home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.20000824-20010305 / 000025_news@columbia.edu _Wed Sep 13 10:38:14 2000.msg < prev    next >
Internet Message Format  |  2020-01-01  |  2KB

  1. Return-Path: <news@columbia.edu>
  2. Received: from watsun.cc.columbia.edu (watsun.cc.columbia.edu [128.59.39.2])
  3.     by monire.cc.columbia.edu (8.9.3/8.9.3) with ESMTP id KAA19347
  4.     for <kermit.misc@cpunix.cc.columbia.edu>; Wed, 13 Sep 2000 10:38:13 -0400 (EDT)
  5. Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.59.30])
  6.     by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id KAA01710
  7.     for <kermit.misc@watsun.cc.columbia.edu>; Wed, 13 Sep 2000 10:38:13 -0400 (EDT)
  8. Received: (from news@localhost)
  9.     by newsmaster.cc.columbia.edu (8.9.3/8.9.3) id KAA17075
  10.     for kermit.misc@watsun.cc.columbia.edu; Wed, 13 Sep 2000 10:35:37 -0400 (EDT)
  11. X-Authentication-Warning: newsmaster.cc.columbia.edu: news set sender to <news> using -f
  12. From: fdc@columbia.edu (Frank da Cruz)
  13. Subject: Re: login script help req.
  14. Date: 13 Sep 2000 14:35:35 GMT
  15. Organization: Columbia University
  16. Message-ID: <8po3bn$glg$1@newsmaster.cc.columbia.edu>
  17. To: kermit.misc@columbia.edu
  18.  
  19. In article <rMK+ObTIovkuI1Y1ERJm+QNZYJI0@4ax.com>,
  20. Ian Lim  <limian@singnet.com.sg> wrote:
  21. : I would like to have a script for K95 as well as Kermit3.16 to do the
  22. : following, pls guide me 
  23. : input {$}
  24. : output su 
  25. : input {Password:}
  26. : output 9999 
  27. : input {$}
  28. : output cd /home/tent/out
  29. : input {$}
  30. :
  31. : from here I would like to automatically download all T* files, after
  32. : successful download send all these files to /home/tent/out/backup
  33. There are lots of examples in the manuals, and in the script library:
  34.  
  35.   http://www.columbia.edu/kermit/scriptlib.html
  36.  
  37. and a brief tutorial here:
  38.  
  39.   http://www.columbia.edu/kermit/ckscripts.html#tut
  40.  
  41. First of all, as it says there, put "if fail" or "if success" statements
  42. after each INPUT.  Use LINEOUT instead of OUTPUT, or else put \13 on the
  43. end of each OUTPUT string.
  44.  
  45. : from here I would like to automatically download all T* files
  46. : after successful download send all these files to /home/tent/out/backup.
  47. :
  48. /home/tent/out/backup on which computer?  Assuming you mean the local
  49. computer, have your script start a Kermit server on the far end and then:
  50.  
  51.   remote cd <desired-directory-on-host>
  52.   if fail ...
  53.   get /move-to:/tent/out/backup T*
  54.   if fail ...
  55.  
  56. This works in current versions of C-Kermit 7.0 and K95.  MS-DOS Kermit
  57. does not have GET /MOVE-TO:.
  58.  
  59. For a fuller discussion, see Case Study #10:
  60.  
  61.   http://www.columbia.edu/kermit/case10.html
  62.  
  63. - Frank